import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:ichinesereader/pages/register/school/billingForSchool.dart';

class RoleChoose extends StatelessWidget {
  RoleChoose({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return AlertDialog(
      title: Text('What is your role'.tr),
      titleTextStyle: TextStyle(
          fontWeight: FontWeight.bold,
          letterSpacing: 1,
          color: Get.isDarkMode ? Color(0xffcccccc) : Colors.black,
          fontSize: 20),
      backgroundColor: Get.isDarkMode
          ? (Color(0xff333333))
          : Color.fromARGB(255, 234, 241, 238),
      shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.all(Radius.circular(20))),
      content: Padding(
        padding: const EdgeInsets.all(8.0),
        child: Container(
            width: 420,
            height: 210,
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                MaterialButton(
                  color: Theme.of(context).colorScheme.secondary,
                  child: Text(
                    "Individual Student".tr,
                    style: TextStyle(color: Colors.white),
                  ),
                  onPressed: () {
                    Navigator.of(context).pop();
                  },
                ),
                SizedBox(height: 20),
                MaterialButton(
                    color: Theme.of(context).colorScheme.secondary,
                    child: Text(
                      "Teacher or School".tr,
                      style: TextStyle(color: Colors.white),
                    ),
                    onPressed: () {
                      //test code below
                      var id = "61bde6e4-417e-4694-8ad8-413831d60e01";
                      var quoteNumber = "2304282088";
                      Get.to(() =>
                          BillingForSchool(id: id, quoteNumber: quoteNumber));
                      // Get.to(() => SchoolRegister());
                    }),
              ],
            )),
      ),
    );
  }
}
